home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ AMD AGP LargePageMinimum 1.xpl < prev    next >
Text File  |  2001-11-27  |  2KB  |  49 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Hardware\CPU"
  5. "NAME"="AMD Athlon/Duron Video Card Compatibility"
  6. "LANGUAGE"="VBScript"
  7. "TEXT 1"="Improve AGP video card compatibility with AMD CPUs"
  8. "DESCRIPTION 1"="If you have an AMD Athlon or Duron processor and are experiencing problems with your AGP video card, then applying this option may fix it."
  9. "DESCRIPTION 2"="If you experience any problems, clearing the tick in the box will return the setting to its default."
  10. "DESCRIPTION 3"="This is for use with Microsoft Windows« 2000/XP/NT with AGP video on AMD AthlonÖ, AMD Athlon MP, mobile AMD Athlon 4 and AMD DuronÖ Processors."
  11. "COMMENT 1"="Thanks to CptSiskoX [CptSiskoX@hotmail.com] for the settings and idea!"
  12. "COMMENT 2"="See: http://www.amd.com/products/cpg/athlon-duron/amd_win2k_patch.html "
  13. "VERSION"="1.21"
  14. "AUTHOR"="Xteq Systems (Neil R. Turner)"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "CONTACTURL"="http://www.xteq.com/"
  17. "OSVERSION"="0101011"
  18.  
  19. sP="HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\"
  20.  
  21. SUB Plugin_Initialize
  22.  s=RegReadValue(sP&"LargePageMinimum")
  23.  if s=4294967295 then
  24.   Call SetUIElement(1,true)
  25.  end if
  26. END SUB
  27.  
  28. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  29.  s=GetUIElement(1)
  30.  if s=true then
  31.   i=RegReadValue(sP&"LargePageMinimum")
  32.   if i<>4294967295 then
  33.    Call RegWriteValue(sP&"LargePageMinimum_XSETOLD",i,3)
  34.    Call RegWriteValue(sP&"LargePageMinimum",4294967295,3) 
  35.   end if
  36.  else
  37.   i=RegReadValue(sP&"LargePageMinimum_XSETOLD")
  38.   if IsEmpty(i)=false then
  39.    Call RegWriteValue(sP&"LargePageMinimum",i,3)
  40.    Call RegDeleteValue(sP&"LargePageMinimum_XSETOLD")
  41.   else
  42.    Call RegDeleteValue(sP&"LargePageMinimum")
  43.   end if
  44.  end if
  45. END SUB
  46.  
  47. SUB Plugin_Terminate
  48. END SUB
  49.